Optimal. Leaf size=47 \[ \frac {a x \sqrt {c+\frac {d}{x^2}}}{c}-\frac {b \tanh ^{-1}\left (\frac {\sqrt {d}}{x \sqrt {c+\frac {d}{x^2}}}\right )}{\sqrt {d}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {375, 451, 217, 206} \[ \frac {a x \sqrt {c+\frac {d}{x^2}}}{c}-\frac {b \tanh ^{-1}\left (\frac {\sqrt {d}}{x \sqrt {c+\frac {d}{x^2}}}\right )}{\sqrt {d}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 217
Rule 375
Rule 451
Rubi steps
\begin {align*} \int \frac {a+\frac {b}{x^2}}{\sqrt {c+\frac {d}{x^2}}} \, dx &=-\operatorname {Subst}\left (\int \frac {a+b x^2}{x^2 \sqrt {c+d x^2}} \, dx,x,\frac {1}{x}\right )\\ &=\frac {a \sqrt {c+\frac {d}{x^2}} x}{c}-b \operatorname {Subst}\left (\int \frac {1}{\sqrt {c+d x^2}} \, dx,x,\frac {1}{x}\right )\\ &=\frac {a \sqrt {c+\frac {d}{x^2}} x}{c}-b \operatorname {Subst}\left (\int \frac {1}{1-d x^2} \, dx,x,\frac {1}{\sqrt {c+\frac {d}{x^2}} x}\right )\\ &=\frac {a \sqrt {c+\frac {d}{x^2}} x}{c}-\frac {b \tanh ^{-1}\left (\frac {\sqrt {d}}{\sqrt {c+\frac {d}{x^2}} x}\right )}{\sqrt {d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 71, normalized size = 1.51 \[ \frac {a \sqrt {d} \left (c x^2+d\right )-b c \sqrt {c x^2+d} \tanh ^{-1}\left (\frac {\sqrt {c x^2+d}}{\sqrt {d}}\right )}{c \sqrt {d} x \sqrt {c+\frac {d}{x^2}}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.74, size = 131, normalized size = 2.79 \[ \left [\frac {2 \, a d x \sqrt {\frac {c x^{2} + d}{x^{2}}} + b c \sqrt {d} \log \left (-\frac {c x^{2} - 2 \, \sqrt {d} x \sqrt {\frac {c x^{2} + d}{x^{2}}} + 2 \, d}{x^{2}}\right )}{2 \, c d}, \frac {a d x \sqrt {\frac {c x^{2} + d}{x^{2}}} + b c \sqrt {-d} \arctan \left (\frac {\sqrt {-d} x \sqrt {\frac {c x^{2} + d}{x^{2}}}}{c x^{2} + d}\right )}{c d}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 73, normalized size = 1.55 \[ \frac {\sqrt {c \,x^{2}+d}\, \left (-b c \ln \left (\frac {2 d +2 \sqrt {c \,x^{2}+d}\, \sqrt {d}}{x}\right )+\sqrt {c \,x^{2}+d}\, a \sqrt {d}\right )}{\sqrt {\frac {c \,x^{2}+d}{x^{2}}}\, c \sqrt {d}\, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.28, size = 58, normalized size = 1.23 \[ \frac {a \sqrt {c + \frac {d}{x^{2}}} x}{c} + \frac {b \log \left (\frac {\sqrt {c + \frac {d}{x^{2}}} x - \sqrt {d}}{\sqrt {c + \frac {d}{x^{2}}} x + \sqrt {d}}\right )}{2 \, \sqrt {d}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.00, size = 65, normalized size = 1.38 \[ \frac {a\,x\,\sqrt {\frac {c\,x^2}{d}+1}}{\sqrt {c+\frac {d}{x^2}}\,\left (\sqrt {\frac {c\,x^2}{d}+1}+1\right )}-\frac {b\,\ln \left (\sqrt {c+\frac {d}{x^2}}+\frac {\sqrt {d}}{x}\right )}{\sqrt {d}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 2.86, size = 39, normalized size = 0.83 \[ \frac {a \sqrt {d} \sqrt {\frac {c x^{2}}{d} + 1}}{c} - \frac {b \operatorname {asinh}{\left (\frac {\sqrt {d}}{\sqrt {c} x} \right )}}{\sqrt {d}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________